class MetaClass(type):
    def __new__(cls, class_name, base_list, attr_dict):
        # 将创建的类名前添加ZZY
        class_name = f"ZZY_{class_name}"
        # 将所有大写的属性都改为小写
        new_attr_dict = {}
        for k, v in attr_dict.items():
            new_attr_dict[k.lower()] = v

        new_attr_dict["author"] = "zzy"

        return super().__new__(cls, class_name, base_list, new_attr_dict)


class Person(metaclass=MetaClass):
    # 通过metaclass来指定使用哪个元类来创建类（默认使用type）
    INFO = "好好学习"

print(hasattr(Person, "INFO"), hasattr(Person, "info"), Person.__name__, hasattr(Person, "author"))